<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<html>
    <head>
        <title>OSDiary</title>
        <link href="css/default.css" rel="stylesheet" type="text/css" />
        <meta content="text/html; charset=utf-8" http-equiv="content-type">
        <script src="js/osd_profile.js" type="text/javascript"></script>
        <script src="js/prototype.js" type="text/javascript"></script>
        <script src="js/builder.js" type="text/javascript"></script>
        <script src="js/effects.js" type="text/javascript"></script>
        <script src="js/dragdrop.js" type="text/javascript"></script>
        <script src="js/slider.js" type="text/javascript"></script>
        <script src="js/controls.js" type="text/javascript"></script>
        <sx:head />
    </head>
    <body>
        
        <jsp:include page="WEB-INF/jspparts/logo.jsp" />

        <div id="content">

            <jsp:include page="WEB-INF/jspparts/sidebar.jsp" />

            <div id="main">
                <div id="welcome" class="post">

                        <table>
                            <tr>
                                <td><s:property value="%{getText('email')}"/></td>
                                <td><s:property value="email"/></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('name')}"/></td>
                                <td><span id="nametd"><s:property value="name"/></span><span id="nameEditLink">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;редактировать</span></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('surname')}"/></td>
                                <td><span id="surnametd"><s:property value="surname"/></span><span id="surnameEditLink">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;редактировать</span></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('club')}"/></td>
                                <td><span id="clubtd"><s:property value="club"/></span><span id="clubEditLink">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;редактировать</span></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('qual')}"/></td>
                                <td><span id="qualtd"><s:property value="qual"/></span><span id="qualEditLink">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;редактировать</span></td>
                            </tr>
                            <tr>
                                <td><s:property value="%{getText('sex')}"/></td>
                                <td><span id="sextd"><s:property value="sex"/></span><span id="sexEditLink">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;редактировать</span></td>
                            </tr>
                        </table>
                    <p>
                    <p>
                    <s:div>
                        <s:form action="changePassword" method="post" theme="simple">
                            <table>
                                <tr>
                                    <td><s:property value="%{getText('oldpassword')}"/></td>
                                    <td><s:password name="oldpassword"/></td>
                                </tr>
                                <tr>
                                    <td><s:property value="%{getText('password')}"/></td>
                                    <td><s:password name="password"/></td>
                                </tr>
                                <tr>
                                    <td><s:property value="%{getText('repassword')}"/></td>
                                    <td><s:password name="repassword"/></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td><s:submit value="%{getText('saveChanges')}"/></td>
                                </tr>
                            </table>
                        </s:form>
                    </s:div>
                </div>
            </div>
            <div id="extra" style="clear: both;"></div>
        </div>

        <jsp:include page="WEB-INF/jspparts/footer.jsp" />

        <script>
            var id = <s:property value="#session.id"/>;
            registerInPlaceEditor('name', id);
            registerInPlaceEditor('surname', id);
            registerInPlaceEditor('club', id);

            registerInPlaceCollectionEditor('sex', id);
            registerInPlaceCollectionEditor('qual', id);
        </script>

    </body>
</html>